<%@ page language="java" contentType="text/html;charset=utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->
<head>
    <jsp:include page="../common/common.jsp"/>
</head>
<body class="page-header-fixed">
<jsp:include page="../common/header.jsp"/>
<div class="clearfix">
</div>
<div class="page-container">
<div class="page-sidebar-wrapper"><jsp:include page="../common/menu.jsp"/></div>
<div class="page-content-wrapper">
<div class="page-content">
<div class="row">
<div class="col-md-12">
<form class="form-horizontal form-row-seperated" action="${path}/survey/save" method="post">
<div class="portlet box purple">
<div class="portlet-title">
    <div class="caption">
        <i class="fa fa-shopping-cart"></i>投票信息
    </div>
    <div class="actions btn-set">
        <a href="javascript:history.go(-1);" class="btn default"><i class="fa fa-angle-left" title="返回"></i></a>
        <a href="javascript:location.reload();" class="btn green"><i class="fa fa-reply" title="重置"></i></a>
        <button type="button" class="btn blue save"><i class="fa fa-check" title="保存"></i></button>
    </div>
</div>
<div class="portlet-body">
    <div class="tabbable">
        <div class="tab-content no-space">
            <div class="tab-pane active" id="tab_general">
                <div class="form-body">
                    <div class="form-group">
                        <label class="col-md-2 control-label">投票满意度:</label>
                        <div class="col-md-3">
                            <select name="result" class="form-control">
                                <option value="1" <c:if test="${1 == data.result}">selected="selected" </c:if> >满意</option>
                                <option value="2" <c:if test="${2 == data.result}">selected="selected" </c:if> >一般</option>
                            	<option value="3" <c:if test="${3 == data.result}">selected="selected" </c:if> >不满意</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-2 control-label">ip地址:
                            <span class="required">*</span>
                        </label>
                        <div class="col-md-8">
                            <input id="ip" type="text" name="ip" value="${data.ip }">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-2 control-label">投票时间:
                            <span class="required">*</span>
                        </label>
                        <div class="col-md-8">
                            <input id="createTime" type="text" readonly name="createTime" value="${data.createTime}">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="portlet-title">
    <div class="actions btn-set">
        <a href="javascript:history.go(-1);" class="btn default"><i class="fa fa-angle-left" title="返回"></i></a>
        <a href="javascript:location.reload();" class="btn green"><i class="fa fa-reply" title="重置"></i></a>
        <button type="button" class="btn blue save"><i class="fa fa-check" title="保存"></i></button>
    </div>
</div>
</div>
<input type="hidden" id="id" name="id" value="${data.id}">
</form>
</div>
</div>
</div>
</div>
</div>
<jsp:include page="../common/footer.jsp"/>
<script type="text/javascript" src="${path}/assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js"></script>
<script type="text/javascript" src="${path}/assets/plugins/jquery-inputmask/jquery.inputmask.bundle.min.js"></script>
<script type="text/javascript" src="${path}/assets/plugins/jquery.input-ip-address-control-1.0.min.js"></script>
<script type="text/javascript" src="${path}/assets/plugins/jquery.pwstrength.bootstrap/src/pwstrength.js"></script>
<script type="text/javascript" src="${path}/assets/scripts/biz/ajaxfileupload.js"></script>
<script type="text/javascript" src="${path}/assets/plugins/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="${path}/assets/plugins/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" src="${path}/assets/plugins/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="${path}/operate/js/help.js"></script>
<script>
    $(function() {
        $(".save").click(function() {
            $("form").submit();
        });
    });
</script>
</body>
</html>